Skip to content

Add my.woo.ai to known Calypso origins#47181

Merged
p-jackson merged 2 commits intotrunkfrom
DOTMSD-1094-calypso-origins
Feb 18, 2026
Merged

Add my.woo.ai to known Calypso origins#47181
p-jackson merged 2 commits intotrunkfrom
DOTMSD-1094-calypso-origins

Conversation

@p-jackson
Copy link
Member

@p-jackson p-jackson commented Feb 18, 2026

Fixes https://linear.app/a8c/issue/DOTMSD-1094

Proposed changes:

  • Add https://my.woo.ai and http://my.woo.localhost:3000 to the known Calypso origins allowlist in wpcom_get_calypso_origin().

This is used in the block editor when linking back to the dashboard.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Does this pull request change what data or activity we track or use?

No.

Testing instructions:

  • Pass ?calypso_origin=https://my.woo.ai to a Jetpack-connected site
  • Verify the origin is accepted (not replaced with https://wordpress.com)

Changelog

  • Generate changelog entries for this PR (using AI).

Copilot AI review requested due to automatic review settings February 18, 2026 02:27
@p-jackson p-jackson added the [Status] Needs Review This PR is ready for review. label Feb 18, 2026
@p-jackson p-jackson self-assigned this Feb 18, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (WordPress.com Site Helper), and enable the DOTMSD-1094-calypso-origins branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin DOTMSD-1094-calypso-origins

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added the [Package] Jetpack mu wpcom WordPress.com Features label Feb 18, 2026
@github-actions
Copy link
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@p-jackson p-jackson requested a review from a team February 18, 2026 02:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the new Woo AI platform (my.woo.ai) by adding it and its local development equivalent to the list of trusted Calypso origins. This enables the Woo AI platform to properly integrate with Jetpack-connected WordPress sites.

Changes:

  • Add https://my.woo.ai and http://my.woo.localhost:3000 to the allowed Calypso origins in wpcom_get_calypso_origin()
  • Add changelog entry documenting the new origins

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
projects/packages/jetpack-mu-wpcom/src/utils.php Adds two new origins to the allowed Calypso origins allowlist
projects/packages/jetpack-mu-wpcom/changelog/DOTMSD-1094-calypso-origins Documents the change in the changelog

Comment on lines +92 to +93
'http://my.woo.localhost:3000',
'https://my.woo.ai',
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding unit tests for the wpcom_get_calypso_origin function to verify that the new origins are properly recognized and that invalid origins are correctly rejected. This would help prevent regressions if the allowlist is modified in the future.

Copilot uses AI. Check for mistakes.
Significance: patch
Type: changed

Calypso Origins: add my.woo.ai and my.woo.localhost to known origins.
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog entry should use imperative mood with the first word capitalized. Change "add" to "Add" to match the project's changelog conventions.

Copilot generated this review using guidance from repository custom instructions.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What 😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tryna get copilot to make the change it suggested ... don't know how long i'm supposed to wait

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh here it is #47181 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣🤣🤣🤣 it literally capitalised the first word. I figured it would fix the "mood" too

fushar
fushar previously approved these changes Feb 18, 2026
Copy link
Contributor

@fushar fushar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I forgot about this. So many sets of origins!

Haven't actually tested the changes, but visually, the changes are looking good.

@jp-launch-control
Copy link

jp-launch-control bot commented Feb 18, 2026

Code Coverage Summary

Coverage changed in 1 file.

File Coverage Δ% Δ Uncovered
projects/packages/jetpack-mu-wpcom/src/utils.php 6/75 (8.00%) -0.22% 2 ❤️‍🩹

Full summary · PHP report

@p-jackson
Copy link
Member Author

So many sets of origins!

MGS is our friend 😄

Copy link
Contributor

Copilot AI commented Feb 18, 2026

@p-jackson I've opened a new pull request, #47182, to work on those changes. Once the pull request is ready, I'll request review from you.

@p-jackson
Copy link
Member Author

I tested this by

  • sandboxing a test site
  • opening up the site editor in the test site
  • added to the URL ?calypso_origin=https://my.woo.ai&wpcom_dashboard_link=/sites
  • the site editor's exit button will show now point to my.woo.ai/sites

Copilot AI review requested due to automatic review settings February 18, 2026 03:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +92 to +93
'http://my.woo.localhost:3000',
'https://my.woo.ai',
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wpcom_get_calypso_origin() function validates origins for security purposes but lacks test coverage. Consider adding unit tests to verify that:

  • Only allowed origins are accepted
  • Disallowed origins fall back to the default 'https://wordpress.com'
  • The strict comparison in in_array() works correctly

This would help prevent regressions when adding or modifying allowed origins.

Copilot uses AI. Check for mistakes.
@p-jackson p-jackson merged commit c12d11c into trunk Feb 18, 2026
75 checks passed
@p-jackson p-jackson deleted the DOTMSD-1094-calypso-origins branch February 18, 2026 03:28
@github-actions github-actions bot added [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. and removed [Status] Needs Review This PR is ready for review. labels Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Jetpack mu wpcom WordPress.com Features [Status] UI Changes Add this to PRs that change the UI so documentation can be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants